﻿using ILWeaving;

var processor = new OrderProcessor();
try
{
    processor.ProcessOrder("ORD123", 50);
    var total = processor.CalculateTotal(25.99m, 3);
    Console.WriteLine($"计算的总金额: {total}");
    // 这个调用会抛出异常
    processor.ProcessOrder("ORD456", 150);
}
catch (Exception ex)
{
    Console.WriteLine($"主程序捕获到异常: {ex.Message}");
}